package be.felnederlands.client.content.home;

import be.felnederlands.client.data.Word;
import be.felnederlands.client.data.WordRepository;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Label;

public class HomeContent extends Composite {
	
	public HomeContent(){
		FlowPanel panel = new FlowPanel();
		panel.setStyleName("row");
		
		for( Word word : WordRepository.getInstance().getWords()){
			panel.add(new WordPanel(word.getWord(), word.getDefinition(), word.getFirstExample()));
		}
		
		initWidget(panel);
	}
}
